package com.zyf.client;

import com.zyf.model.user.Patient;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/** user的远程调用接口
 * @author zyf
 * @date 2021年05月31日 14:57
 */
@FeignClient(value = "service-user")
@Repository
public interface PatientFeignClient {

    @ApiOperation(value = "根据id获取就诊人信息")
    @GetMapping("/api/user/patient/inner/get/{id}")
    Patient getPatientOrder(@PathVariable("id") long id);
}
